Skip to content

feat(svg): support gradients and patterns for background color in SVG renderer#959

Merged
plainheart merged 10 commits intomasterfrom
svg-background
Oct 13, 2022
Merged

feat(svg): support gradients and patterns for background color in SVG renderer#959
plainheart merged 10 commits intomasterfrom
svg-background

Conversation

@plainheart
Copy link
Collaborator

@plainheart plainheart commented Oct 9, 2022

  1. SVG renderer now supports using gradients and patterns as background and pattern supports repeat strategy (repeat-x, repeat-y, no-repeat).

  2. Fix a bug in the canvas renderer - the gradient background isn't updated due to the cache after resizing.
    Refer to the commit 81a8903.

  1. Enhance encodeBase64 compatibility.

Resolves apache/echarts#17029
Resolves apache/echarts#17735

@plainheart plainheart requested review from Ovilia and pissang October 9, 2022 11:15
@plainheart plainheart changed the title feat(svg): supports gradients and patterns for background color in SVG renderer feat(svg): support gradients and patterns for background color in SVG renderer Oct 9, 2022
@plainheart plainheart merged commit 2ebc6fc into master Oct 13, 2022
@plainheart plainheart deleted the svg-background branch October 13, 2022 11:03
@zhiqingchen
Copy link

hi @plainheart
Is there a plan to publish the changes?

@plainheart
Copy link
Collaborator Author

@zhiqingchen We are going to prepare for releasing v5.4.1 this week. Please keep an eye on it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] RadialGradient backgroundColor can't render by svg [Bug] Linear gradient is not respected when renderer type is SVG

3 participants